e648393674fb7c6ec65c4aa23fe13ae79c3102cc
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 1"""
4  date="2023-07-05T19:49:19Z"
5  content="""
6 Simplified test case:
7
8         git init tc
9         cd tc
10         git-annex init
11         echo 1 > foo
12         git-annex add
13         git commit -m add
14         git annex adjust --unlock
15         git checkout master
16         rm foo
17         echo 2 > foo
18         git-annex add
19         git commit -m "this commit will be lost"
20         git checkout 'adjusted/master(unlocked)'
21         git annex adjust --unlock  # or git-annex sync
22         git log master
23
24 What an unfortunate oversight! And it's not a reversion, it's been there
25 since the beginning of adjusted branches.
26
27 git-annex adjust should display a warning message in that situation,
28 since the original branch has diverged from the adjusted branch.
29
30 And git-annex sync should be able to resolve the divergence by
31 auto-merging the changes from the original branch into the adjusted
32 branch.
33 """]]